package com.yodawnla.easyPuyo.item;

import com.yodawnla.lib.util.YoInt;

public abstract class Item
{
	public interface Type
	{
		public static final int Equipment = 0;
		public static final int Diamond = 1;
		public static final int GaCha = 2;
	}
	
	int mType;
	YoInt mPrice = new YoInt(0);
	
	boolean mIsDiamondItem = false;
	String mIconTextureName;
	
	public Item(String textureName)
	{
		mIconTextureName = textureName;
	}

	public abstract void use();

	public void setPrice(int value)
	{
		mPrice.set(value);
	}
	
	public void setDiamondItem()
	{
		mIsDiamondItem = true;
	}
	
	public boolean isDiamondItem()
	{
		return mIsDiamondItem;
	}

	public void modifyPrice(int value)
	{
		mPrice.add(value);
	}

	public int getPrice()
	{
		return mPrice.get();
	}
	
	public String getTextureName()
	{
		return mIconTextureName;
	}
	
	public int getType()
	{
		return mType;
	}

}
